#include "TragedyFactory.h"

#include <iostream>

using namespace std;

int main()
{
	char drink;
	TragedyFactory* factory;

	cout << "Please chose your drink, [c] for coffer, [b] for beer." << endl;

	cin >> drink;

	switch (drink)
	{
	case 'c':
		factory = CupFactory::Instance();
		break;
	case 'b':
		factory = GlassFacotry::Instance();
		break;
	default:
		cout << "You have chosen neither." << endl;
		return 0;
	}

	Tragedy* tragedy = factory->CreateTragedy();
	tragedy->Fill();
	tragedy->Clear();

	delete tragedy;

	return 0;
}